<template>
  <div>
    <div class="container">
      <div>
        <span><h3>课程信息</h3></span>
        <span style="float: left;"><!-- <button class="btn btn-info" @click="add()">录入</button> --></span>
        <table class="table" id="manageTable">
          <thead>
            <th>编号</th>
            <th>教师编号</th>
            <th>教师名</th>
            <th>课程编号</th>
            <th>课程名</th>
            <th>班级编号</th>
            <th>班级名</th>
            <th>教室编号</th>
            <th>教室名</th>
            <th>时间编号</th>
            <th>第几周</th>
            <th>第几天</th>
            <th>第几节课</th>
          </thead>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
        </table>
      </div>
    </div>
  </div>
</template>

<script>
  /*引入工具对象*/
  import myUtil from '../util/myUtil'
  import axios from 'axios'
  export default{
    name:"login",
    data(){
      return{
        ScheudleForm:{
          schedule_id:"",
          teacher_id:"",
          teacher_name:"",
          lesson_id:"",
          lesson_name:"",
          clazz_id:"",
          clazz_name:"",
          classroom_id:"",
          room_name:"",
          time_id:"",
          week_number:"",
          day_number:"",
          time_range:""
        }
      }
    },
    methods:{
      showAllMessage(){
        var self = this;
        $.ajax({
          url:myUtil+"/schedule/list",
          type:"get",
          dataType:"json",
          success:function(data){
            console.log(data.list);
          }
        });
      }
    },
    mounted(){
      this.showAllMessage();
      alert("Cwd");
    }
  }
</script>

<style>
</style>
